import { defineStore } from 'pinia'

export const useLayoutStore = defineStore('layout', {
    state: () => ({
        collapsed: false,  // 菜单折叠状态
    }),
    actions: {
        toggleCollapse() {
            this.collapsed = !this.collapsed
        }
    },
    persist: true
}) 